package exception;

import utils.ResponseCode;

public class ProductException extends Exception{
    private ResponseCode error;

    public ResponseCode getError() {
        return error;
    }

    public ProductException(ResponseCode error) {
        super(error.getDesc());
        this.error = error;
    }
}
